<div id="box">
	<h3>Danh Sách Danh Mục Hoa</h3>
       <table width="100%">
			<thead>
				<tr>
   <th width="70px"><a href="#">Mã Danh Mục<img src="<?php echo base_url(); ?>/asset/admin/images/icons/arrow_down_mini.gif" width="16" height="16" align="absmiddle" /></a></th>
                            	<th width="150px"><a href="#">Tên Danh Mục</a></th>
                                <th width="50px"><a href="#">Hiển Thị</a></th>
   <th width="60px"><a href="#">Tùy Chọn</a></th>
                            </tr>
						</thead>
			<tbody>
<?php
foreach($dsdm as $dm)
	echo '<tr>
             <td class="a-center">'.$dm->madm.'</td>
             <td>'.$dm->tendm.'</td>
             <td align="center">'.$dm->hienthi.'</td>
        	 <td align="center">
			 
'.anchor('admin/hoa/danhsach/'.$dm->madm, '<img src="'.base_url().'/asset/admin/images/icons/user.png" title="Danh sách hoa" width="16" height="16" />').'
			 
'.anchor('admin/danhmuc/capnhat/'.$dm->madm, '<img src="'.base_url().'/asset/admin/images/icons/user_edit.png" title="Cập nhật danh mục hoa" width="16" height="16" />').'
			 
 '.anchor('admin/danhmuc/xoadanhmuc/'.$dm->madm, '<img src="'.base_url().'/asset/admin/images/icons/user_delete.png" title="Xóa danh mục hoa" width="16" height="16" />', array('onclick'=>'return xacnhanxoa();')).' </td>
                            </tr>';
?>            
                            					
			</tbody>
		</table>
   <div id="pager">
                    	Page <a href="#"><img src="img/icons/arrow_left.gif" width="16" height="16" /></a> 
                    	<input size="1" value="1" type="text" name="page" id="page" /> 
                    	<a href="#"><img src="img/icons/arrow_right.gif" width="16" height="16" /></a>of 42
                    pages | View <select name="view">
                    				<option>10</option>
                                    <option>20</option>
                                    <option>50</option>
                                    <option>100</option>
                    			</select> 
                    per page | Total <strong>420</strong> records found
                    </div>
</div>

<script language="javascript" type="text/javascript">
function xacnhanxoa()
{
	return confirm('Có chắc xóa danh mục này không?');
}
</script>
